package com.heu.blood.match.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.match.entity.BloodVerifyPatientEntity;
import com.heu.blood.transfusion.entity.TransfusionApplicationEntity;
import org.apache.commons.lang3.tuple.Pair;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lyj
 * @email lyj@heu.com
 * @date 2023-06-16 00:23:13
 */
public interface BloodVerifyPatientService extends IService<BloodVerifyPatientEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 通过输血申请单信息来新增对应的病人核验信息
     * @param transfusionApplications
     * @return
     */
    Boolean saveWithTransfusion(List<TransfusionApplicationEntity> transfusionApplications);

    /**
     * 通过比对患者信息表和患者核查表
     * @param bloodVerifyPatient
     */
    Pair<Boolean, String> verify(BloodVerifyPatientEntity bloodVerifyPatient);

    /**
     * 条件查询患者核验表信息
     * @param bloodVerifyPatientEntity
     * @return
     */
    List<BloodVerifyPatientEntity> query(BloodVerifyPatientEntity bloodVerifyPatientEntity);
}

